package com.desk.copyfile.main;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class MyConfigHolder {
    private static MyConfigProperties myConfigProperties;

    @Autowired
    private MyConfigProperties configProperties;

    @PostConstruct
    public void init() {
        myConfigProperties = configProperties;
    }

    public static MyConfigProperties getMyConfigProperties() {
        return myConfigProperties;
    }
}